PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.formattedcontent Package / PDFFormattedContent Class / splitByBox Method / splitByBox(double,double,boolean) Method
The box width.
The box height.
If true, the list of paragraphs is also updated to reflect the split.
In This Topic
    splitByBox(double,double,boolean) Method
    In This Topic
    Gets the formatted content that fits in the given box.
    This method modifies the current object, the formatted content that fits the given box is removed from current object and returned as a new object.
    If this method is called multiple times but with a different width then the 'updateParagraphs' parameter should be set to true.
    Syntax
    public PDFFormattedContent splitByBox( 
       double width,
       double height,
       boolean updateParagraphs
    )

    Parameters

    width
    The box width.
    height
    The box height.
    updateParagraphs
    If true, the list of paragraphs is also updated to reflect the split.

    Return Value

    The formatted content that fits in the given box.
    See Also